<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<form action="goodsTypeList" method="post">
		<div align="center">
			用户名:<input type="text" name="name" /> 等级:<select name="level">
				<option value="0">请选择</option>
				<option value="1">1</option>
				<option value="2">2</option>
				<option value="3">3</option>
			</select>
			<input type="submit" value="查询"/>
			 <a href="addGoodsType">添加</a>
		</div>
	</form>
	<table border="1" align="center">
		<tr>
			<td>编号</td>
			<td>名称</td>
			<td>级别</td>
			<td>父类别</td>
		</tr>
		<c:forEach var="g" items="${list}">
			<tr>
				<td>${g.id}</td>
				<td>${g.name}</td>
				<td>${g.level}</td>
				<td>${g.parentName}</td>
			</tr>
		</c:forEach>
	</table>
	<div align="center">
		<a href="goodsTypeList?name=${name}&level=${level}">首页</a>
		<a
			href="goodsTypeList?pageIndex=${pageIndex-1}&name=${name}&level=${level}">上一页</a>
		<a
			href="goodsTypeList?pageIndex=${pageIndex+1}&name=${name}&level=${level}">下一页</a>
		<a
			href="goodsTypeList?pageIndex=${pageCount}&name=${name}&level=${level}">尾页</a>
	</div>
</body>
</html>